package org.example.DesignPatterns.Decorator.d1;

/**
 * @description:
 * @author: farprt
 * @create: 2022-03-10 09:45
 **/
public class Finery extends Person{
    protected Person component;

    public void Decorate(Person component){
        this.component=component;
    }

    @Override
    public void Show() {
        if(component!=null){
            component.Show();
        }
    }
}